package com.example.mrzhou.srtfoodapplication;

import android.content.Context;
import android.content.Intent;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

/**
 * Created by SRTfood on 2017/1/19.
 */

public class TitleNewsLayout extends LinearLayout {

    public TitleNewsLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.title_news,this);
        Button TitleNotice = (Button) findViewById(R.id.title_notice);
        TitleNotice.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent;
            }
        });
    }
}
